package com.freight.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @author huyingtai
 */
@Data
public class DriverDetailInfoVo extends UserVo {


    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "身份证Id")
    private Long idCardId;

    @ApiModelProperty(value = "行驶证Id")
    private Long vehicleId;

    @ApiModelProperty(value = "司机名字")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "生日")
    private String birth;

    @ApiModelProperty(value = "身份证号")
    private String num;

    @ApiModelProperty(value = "车牌号码")
    private String vehicleNum;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "车长")
    private String vehicleLength;

    @ApiModelProperty(value = "车型")
    private String vehicleType;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String updateTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "注册状态")
    private Integer registStatus;

    @ApiModelProperty(value = "证件状态 （1.正常 2.异常 ：根据2个证件到期日判断，只有要有一个快到期了（1个月），则变2  3.未知）")
    private Integer documentStatus;

    @ApiModelProperty(value = "描述信息")
    private String describeInfo;

    @ApiModelProperty(value = "状态 默认0正常 -1禁用")
    private String status ;

}